/**  
* @Title:  TestControl.java
* @Package com.hugedata.cdnserver.control
* @Description: TODO(用一句话描述该文件做什么)
* @author wangxiaoming
* @date  Jul 22, 2014 3:32:54 PM
* @version V1.0  
* Update Logs:
* ****************************************************
* Name:
* Date:
* Description:
******************************************************
*/
package com.hugedata.cdnserver.control;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

import org.apache.commons.io.FileUtils;

/**
 * @ClassName: TestControl
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author wangxiaoming
 * @date Jul 22, 2014 3:32:54 PM
 *
 */
public class TestControl
{

    /**
     * @Title: main
     * @Description: TODO(这里用一句话描述这个方法的作用)
     * @author wangxiaoming
     * @param args
     * @throws
     * http://file1.hugedata.com:8080/MFileServer/servlet/fs/20140722/14/49_1101-11-1001_dnsdelay_20140722143452_4101-11-1026_dnsdelay_1101-11_20140722143444.tar.bz
     */
    public static void main(String[] args)
    {
        // TODO Auto-generated method stub
        String dstPath = "cfg/crawl/49_1101-11-1001_dnsdelay_20140722143452_4101-11-1026_dnsdelay_1101-11_20140722143444.tar.bz";
//        String dstPath = "/home/pier/wxm/tmp/cfg/crawl/aaa1111.tar.bz";
        File file = new java.io.File(dstPath);
        FileOutputStream fos = null;
        
        try
        {
            if (!file.exists())
            {
                file.createNewFile();
            }
            fos = new FileOutputStream(file);
            fos.write(1234);
        }
        catch (IOException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        finally
        {
            if (null != fos)
            {
                try
                {
                    fos.close();
                }
                catch (IOException e)
                {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
                fos = null;
            }
        }
    }

}
